#include "talloc.h"
#include "xenstored_core.h"
#include "xenstored_domain.h"
+#include "xenstored_proc.h"
#include "xenstored_watch.h"
#include "xenstored_test.h"
char str[20];
struct domain *dom0;
- fd = open("/proc/xen/xsd_mfn", O_RDONLY);
+ fd = open(XENSTORED_PROC_MFN, O_RDONLY);
rc = read(fd, str, sizeof(str));
str[rc] = '\0';
close(fd);
- fd = open("/proc/xen/xsd_port", O_RDONLY);
+ fd = open(XENSTORED_PROC_PORT, O_RDONLY);
rc = read(fd, str, sizeof(str));
str[rc] = '\0';
--- /dev/null
+/*
+ Copyright (C) 2005 XenSource Ltd
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+*/
+
+#ifndef _XENSTORED_PROC_H
+#define _XENSTORED_PROC_H
+
+#define XENSTORED_PROC_MFN "/proc/xen/xsd_mfn"
+#define XENSTORED_PROC_PORT "/proc/xen/xsd_port"
+
+
+#endif /* _XENSTORED_PROC_H */